package com.cssnj.portal.domain.user;

import javax.persistence.*;
import java.sql.Timestamp;
import java.util.Objects;

@Entity
@Table(name = "GL_YH_GN_PJ")
@IdClass(GlYhGnPjEntityPK.class)
public class GlYhGnPjEntity {
    private String swrysfDm;
    private String gnId;
    private String lrryId;
    private String xgryId;
    private Timestamp lrSj;
    private Timestamp xgSj;
    private String pjdjDm;
    private String swryDm;
    private String swryXm;
    private String swrysfMc;
    private String sfswjgDm;
    private String sfswjgmc;
    private String pjnr;

    @Basic
    @Column(name = "SWRYSF_DM")
    public String getSwrysfDm() {
        return swrysfDm;
    }

    public void setSwrysfDm(String swrysfDm) {
        this.swrysfDm = swrysfDm;
    }

    @Id
    @Column(name = "GN_ID")
    public String getGnId() {
        return gnId;
    }

    public void setGnId(String gnId) {
        this.gnId = gnId;
    }

    @Basic
    @Column(name = "LRRY_ID")
    public String getLrryId() {
        return lrryId;
    }

    public void setLrryId(String lrryId) {
        this.lrryId = lrryId;
    }

    @Basic
    @Column(name = "XGRY_ID")
    public String getXgryId() {
        return xgryId;
    }

    public void setXgryId(String xgryId) {
        this.xgryId = xgryId;
    }

    @Basic
    @Column(name = "LR_SJ")
    public Timestamp getLrSj() {
        return lrSj;
    }

    public void setLrSj(Timestamp lrSj) {
        this.lrSj = lrSj;
    }

    @Basic
    @Column(name = "XG_SJ")
    public Timestamp getXgSj() {
        return xgSj;
    }

    public void setXgSj(Timestamp xgSj) {
        this.xgSj = xgSj;
    }

    @Basic
    @Column(name = "PJDJ_DM")
    public String getPjdjDm() {
        return pjdjDm;
    }

    public void setPjdjDm(String pjdjDm) {
        this.pjdjDm = pjdjDm;
    }

    @Id
    @Column(name = "SWRY_DM")
    public String getSwryDm() {
        return swryDm;
    }

    public void setSwryDm(String swryDm) {
        this.swryDm = swryDm;
    }

    @Basic
    @Column(name = "SWRY_XM")
    public String getSwryXm() {
        return swryXm;
    }

    public void setSwryXm(String swryXm) {
        this.swryXm = swryXm;
    }

    @Basic
    @Column(name = "SWRYSF_MC")
    public String getSwrysfMc() {
        return swrysfMc;
    }

    public void setSwrysfMc(String swrysfMc) {
        this.swrysfMc = swrysfMc;
    }

    @Basic
    @Column(name = "SFSWJG_DM")
    public String getSfswjgDm() {
        return sfswjgDm;
    }

    public void setSfswjgDm(String sfswjgDm) {
        this.sfswjgDm = sfswjgDm;
    }

    @Basic
    @Column(name = "SFSWJGMC")
    public String getSfswjgmc() {
        return sfswjgmc;
    }

    public void setSfswjgmc(String sfswjgmc) {
        this.sfswjgmc = sfswjgmc;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        GlYhGnPjEntity that = (GlYhGnPjEntity) o;
        return Objects.equals(swrysfDm, that.swrysfDm) &&
                Objects.equals(gnId, that.gnId) &&
                Objects.equals(lrryId, that.lrryId) &&
                Objects.equals(xgryId, that.xgryId) &&
                Objects.equals(lrSj, that.lrSj) &&
                Objects.equals(xgSj, that.xgSj) &&
                Objects.equals(pjdjDm, that.pjdjDm) &&
                Objects.equals(swryDm, that.swryDm) &&
                Objects.equals(swryXm, that.swryXm) &&
                Objects.equals(swrysfMc, that.swrysfMc) &&
                Objects.equals(sfswjgDm, that.sfswjgDm) &&
                Objects.equals(sfswjgmc, that.sfswjgmc);
    }

    @Override
    public int hashCode() {
        return Objects.hash(swrysfDm, gnId, lrryId, xgryId, lrSj, xgSj, pjdjDm, swryDm, swryXm, swrysfMc, sfswjgDm, sfswjgmc);
    }

    @Basic
    @Column(name = "PJNR")
    public String getPjnr() {
        return pjnr;
    }

    public void setPjnr(String pjnr) {
        this.pjnr = pjnr;
    }
}
